JavaScript
buttonList.setDisplay Method
Syntax
buttonListObj.setDisplay(value, show);
Arguments
- valuestring
The 'value' of the button to enable or disable.
- showboolean
A true/false value. If true, the button will be shown. If false, the button will be hidden.
Description
Shows or hides a button in a Button List Control.
Example
var buttonListObj = {dialog.object}.getControl('BUTTONLIST_1');
if (buttonListObj) {
//hide the button that has a value of 'b3'
buttonListObj.setDisplay('b3',false);
//show the button that has a value of 'b3'
buttonListObj.setDisplay('b3',true);
}